package com.specialized.auth.service;

import com.specialized.system.domain.SysUser;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @Author：djh
 * @Package：com.specialized.auth.service
 * @Project：Specialized-Cloud
 * @name：CouponListener
 * @Date：2024/7/21 16:08
 */
@Component
public class CouponListener {

    @Async
    @EventListener(SysUser.class)
    public  void  couponListener(SysUser sysUser ){
        System.out.println("注册用户发优惠券"+sysUser);
    }
}
